package club.sdll.controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class MainController  {
	
//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//		// TODO Auto-generated method stub
//		return super.configure(builder);
//	}
	
	public static void main(String[] args) {
		SpringApplication.run(MainController.class, args);
		
		
	}
	
	@RequestMapping("/")
	@ResponseBody
	public String toIndex() {
		String name = "哈哈，我来了！！！";
		System.out.println("name ==== " + name);
		return name;
	}

}
